@charset "utf-8";

* {
    margin: 0;
    padding: 0;
}

[name="myForm"]  {
    width: 300px;
    height: 200px;
    position: absolute;
    top:0; right: 0; bottom: 0; left: 0;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

[name="myForm"] input {
    width: 160px;
    height: 35px;
    outline: none;
    border: 1px solid #333;
    box-sizing: border-box;
    padding-left: 8px;
    transition: all .25s linear;
    font-size: 15px;
}

[name="myForm"] input:focus {
    border-color: green;
}

[name="myForm"] .input-box {
    position: relative;
}
[name="myForm"] .input-box::after {
    width: 200%;
    content: attr(data-msg);
    font-size: 12px;
    color: red;
    position: absolute;
    top: 100%;
    left: 0;  
}
[name="myForm"] section.hidden::after {
    display: none;
}

[name="myForm"] .validate-code {
    display: inline-block;
    width: 120px;
    height: 35px;
    color: #fff;
    font-size: 16px;
    letter-spacing: 5px;
    line-height: 35px;
    text-align: center;
    background: linear-gradient(to bottom right, green, orange);
    cursor: pointer;
    position: relative;
}









